home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D Speech Pack / 4D Speech Pack.rsrc / TEXT_11703_†Filepath.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  2.8 KB  |  49 lines

  1. Filepath
  2.  
  3. When a parameter accepts a filepath as input, this means either the document name or the full file-path. When you specify only a document name it will be saved in the default folder, usually the one with the data-file.
  4. Each element name (folder or file name) can't be longer than 31 characters. If the filepath contains longer names the name is clipped to 31 characters and thus the folder or file will not be found.
  5. If you specify the full pathname it may contain names of aliases. These aliases are resolved for you, even if they lead to an unmounted file-server volume which is then mounted. You can also use an empty string as the path to let the user select the location of the file to create.
  6. When using System 7.0 or later and a folder can not be found and its length is four characters the code tries to see if it is a special system related folder abbreviation:
  7.  
  8. These folder types are valid since System 7.0:
  9.  
  10. Folder type:      Folder Name:                                             
  11. amnu                Apple Menu Items
  12. ctrl                  Control Panels
  13. desk                 Desktop Folder
  14. empt                WhereToEmptyTrash (for network trash)
  15. extn                 Extensions
  16. macs                System Folder
  17. pref                 Preferences
  18. prnt                 PrintMonitor Spool
  19. strt                 Startup Items
  20. temp                Temporary Items
  21. trsh                 Trash
  22.  
  23. And this folder type is normally installed since System 7.1:
  24.  
  25. Folder type:     Folder Name:                                             
  26. font                  Fonts
  27.  
  28. Something like the path below would be a valid filepath, unless one of the elements doesn't exist, or an alias references to a non-existing object, or to a file while a folder is expected:
  29.  
  30.   Macintosh HD:4D:Second Disk alias:Sound:Female Voice
  31.  
  32. This one points to the startup folder of the specified ‚ÄùMacintosh HD‚Äú volume:
  33.  
  34.   Macintosh HD:strt:Female Voice
  35.  
  36. And this one to the startup items folder of the current system volume while you don't need to know the volume name (‚ÄùMacintosh HD‚Äú):
  37.  
  38.   strt:Female Voice
  39.  
  40. This one would lead to the same location:
  41.  
  42.   Second Disk:desk:Macintosh HD alias:strt:Female Voice
  43.  
  44. After the ‚ÄùMacintosh HD alias‚Äú is resolved you're on the ‚ÄùMacintosh HD‚Äú volume and the ‚Äùstrt‚Äú folder becomes the Startup Items Folder on that volume.
  45. But to explain this last example in full: On the ‚ÄùSecond Disk‚Äú volume is in its Desktop Folder (‚Äùdesk‚Äú) an alias present by the name ‚ÄùMacintosh HD alias‚Äú. This alias points to any file or folder on the volume ‚ÄùMacintosh HD‚Äú, but probably to the disk itself. Since we are now on the ‚ÄùMacintosh HD‚Äú disk the ‚Äùstrt‚Äú part points to the Startup Items folder on that disk, and that's were the file ‚ÄùFemale voice‚Äú is located (or created).
  46.  
  47.  
  48.  
  49.